import request from '@/utils/request';

/**
 * 课程报表查询
 * @param {*} params 
 */
export async function getCourseReportList(params) {
  return request('/reportForms/getCourseReportList', {
    method: 'POST',
    data: { ...params }
  });
}

/**
 * 导出课程报表列表
 * @param {*} params 
 */
export async function exportCourseReportList(params) {
  return request('/reportForms/exportCourseReportList', {
    method: 'POST',
    data: { ...params }
  });
}

/**
 * 根据用户信息查询场馆List
 * @param {*} params 
 */
export async function fetchShopList(params) {
  return request('/venueInfo/queryVenueInfoListByUserId', {
    method: 'POST',
    requestType:'form',
    data: { ...params },
  });
}

/**
 * 根据当前登录人查询教练List
 * @param {*} params 
 */
export async function fetchCoach(params) {
  return request('/sys/user/queryCoachAndSale', {
    method: 'POST',
    data: {
      ...params
    },
  });
}

export async function queryUserLecturesDetailed(params) {
  return request('/reportFormsV2/queryUserLecturesDetailed', {
    method: 'POST',
    data: { ...params }
  });
}
